<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<title>释放单详情-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
		<script type="text/javascript">
		function release_(id) {
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/cm/release.do?id="+id+"&search.releaseOnly="+id;
			searchForm.submit();
		}
		function del(e,id){
			if(confirm("附件操作不可恢复,确认删除吗?")){
				var f=false;
				$.ajax({
					  async:false,
					  type: 'POST',
					  url: "<s:property value='contextPath'/>/attach/del.do?id="+id,
					  dataType: "json",
					  success: function(data) {
							  	f = data.flag;
							  	if(f){
							  		//alert("删除成功");
							  		$(e).parent().remove();
							  	}
							}
						,
						error:function(data){
						}
					}); 
				
			}
			
		}
		</script>
	</head>
	<body>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>盘库管理&gt;&gt;二网申请&gt;&gt;详情
  	</div>
  	
  	<div class="xt_main_right_center">
	  <table  width="100%" border="0" cellpadding="0" cellspacing="0"    style="border-color:#CCCCCC;">
	    <tr>
	      <td class="left-td-width-bg" align="right">金融机构：</td>
	      <td class="right-td-width-bg-left">${theNetwork.financial.name }</td>
	      <td class="left-td-width-bg">渠道：</td>
	      <td   align="left">${theNetwork.brand.name } </td>
	      <td class="left-td-width-bg"  align="right"> 销售店名：</td>
	      <td class="right-td-width-bg-left"  align="right">${theNetwork.shop.shopName } </td>
	    </tr>
	    <tr>
	      <td class="left-td-width-bg"  align="right">申请人：</td>
	      <td class="right-td-width-bg-left" >${theNetwork.creator } </td>
	      <td class="left-td-width-bg" >申请单号：</td>
	      <td  class="right-td-width-bg-left"  align="right">${theNetwork.theNumber } </td>
	      <td class="left-td-width-bg"  align="right">申请时间：</td>
	      <td class="right-td-width-bg-left"   align="right">${theNetwork.applicationDate }</td>
	    </tr>
	    <tr>
	      <td class="left-td-width-bg"  align="right">附件下载：</td>
	      <td colspan="5"  > 
	      	<s:iterator value="attachs" >
					<div style="display: inline">
						<a href="${contextPath}/attach/download.do?id=<s:property value="id"/>" ><s:property value="name"/></a>&nbsp;
					</div>
				</s:iterator> 
	      </td>
	    </tr>
	    <tr>
	      <td class="left-td-width-bg"  align="right">申请列表：</td>
	      <td colspan="5"  >
	      <table width="100%" border="0" cellpadding="0" cellspacing="0">
	        <tr>
	          <td class="top-td-width-bg">序号</td>
	          <td class="top-td-width-bg">合格证号</td>
	          <td class="top-td-width-bg">车架号</td>
	          <td class="top-td-width-bg">车型</td>
	          <td class="top-td-width-bg">发动机号</td>
	          <td class="top-td-width-bg">供货价</td>
	          <td class="top-td-width-bg">回库地址</td>
	          <td class="top-td-width-bg">二网地址</td>
	          <td class="top-td-width-bg">审核状态</td>
	        </tr>
	         <s:iterator value="theNetwork.theNetworks" status="i" id="c">
	          <tr>
	            <td class="down-center-td-width-bg">${i.count }</td>
	              <td class="down-center-td-width-bg">${c.certificationNum }</td>
	              <td class="down-center-td-width-bg">${c.chassis }</td>
	              <td class="down-center-td-width-bg">${c.motorcycleType }</td>
	              <td class="down-center-td-width-bg">${c.engine }</td>
	              <td class="down-center-td-width-bg"><s:property value="formatAmount(#c.supplyPrice)"/></td>
	              <td class="down-center-td-width-bg">${c.shopName }</td>
	              <td class="down-center-td-width-bg">${c.theAddress }</td>
	              <td class="down-center-td-width-bg">
	              ${c.isNotPass }</td>
	          </tr>
	          </s:iterator>
	      </table></td>
	    </tr>
	    <tr>
	      <td class="down-center-td-width-bg"  colspan="11" align="right"><%@ include file="/WEB-INF/view/common/pagination.jsp"%></td>
	    </tr>
	    <tr>
	      <td colspan="6" align="center" valign="middle">&nbsp;</td>
	    </tr>
	  </table>
	</div>
	
	
	<!-- 审核记录开始 -->
	<s:if test="workflow!=null&&workflow.operates!=null">
		<br/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td height="25" align="left"><font color="#0066CC"><strong>流程操作记录：</strong></font></td>
		    <td height="25" align="right">
		    </td>
		  </tr>
		</table> 
		<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
		  <tr> 
		    <td width="3%" class="top-td-width-bg">序号</td>
		    <td width="20%" class="top-td-width-bg">操作人</td>
		    <td width="20%" class="top-td-width-bg">操作类型</td>
		    <td width="40%" class="top-td-width-bg">描述</td>
		    <td width="17%" class="top-td-width-bg">操作时间</td>
		  </tr>
		 <s:iterator value="workflow.operates" status="stx" >
			<tr height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';"> 
			 	<td align="center"><s:property value="#stx.index+1"/></td>
			    <td align="center"><s:property value="operater.realName"/></td>
			    <td align="center"><s:property value="type.name"/></td>
			    <td align="center"><s:property value="description"/></td>
			    <td align="center"><s:property value="operateDate"/></td>
			</tr>
		</s:iterator>
		</table>
		<br/>
	</s:if>
	</body>
</html>